/**
 * 
 */
package com.icon.utils;

import java.sql.Connection;

import javax.naming.Context;
import javax.naming.InitialContext;
import javax.sql.DataSource;

/**
 * @author jonathanxuya
 *
 */
public class Utils {
	
	public Connection getConnectionBD() throws Exception {
		Context ctx = new InitialContext();
		return ((DataSource) ctx.lookup("java:comp/env/jdbc/conexion"))
				.getConnection();
	}

}
